// FileName: Config.ts
// ProjectName: miu-club
// 作者：区区电脑
// createTime: 2019/9/20

/**
 * app 主模块子路由
 */
const MainChildren: any[] = [
    {
        path: '/home',
        name: 'home',
        meta: {
            title: 'MIU俱乐部'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/home/Home.vue')
    },
    {
        path: '/open-vip',
        name: 'open-vip',
        meta: {
            title: '开通会员'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/open-vip/OpenVip.vue')
    },
    {
        path: '/extension',
        name: 'extension',
        meta: {
            title: '我要推广'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/extension/Extension.vue')
    },
    {
        path: '/transfer-account',
        name: 'transfer-account',
        meta: {
            title: '转账'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/transfer-account/TransferAccount.vue')
    },
    {
        path: '/order',
        name: 'order',
        meta: {
            title: '我的订单'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/order/Order.vue')
    },
    {
        path: '/order-buy-detail',
        name: 'order-buy-detail',
        meta: {
            title: '挂购订单详情'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/order/BuyOrderDetail.vue')
    },
    {
        path: '/order-sell-detail',
        name: 'order-sell-detail',
        meta: {
            title: '出售订单详情'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/order/SellOrderDetail.vue')
    },
    {
        path: '/publish-order',
        name: 'publish-order',
        meta: {
            title: '挂单'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/order/PublishOrder.vue')
    },
    {
        path: '/start-buy-order',
        name: 'start-buy-order',
        meta: {
            title: '我要买'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/order/StartBuyOrder.vue')
    },
    {
        path: '/start-buy-order-check',
        name: 'start-buy-order-check',
        meta: {
            title: '购买订单'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/order/StartBuyOrderCheck.vue')
    },
    {
        path: '/start-sell-order',
        name: 'start-sell-order',
        meta: {
            title: '我要卖'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/order/StartSellOrder.vue')
    },
    {
        path: '/start-sell-order-check',
        name: 'start-sell-order-check',
        meta: {
            title: '出售订单'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/order/StartSellOrderCheck.vue')
    },
    {
        path: '/c2c',
        name: 'c2c',
        meta: {
            title: 'C2C'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/c2c/C2C.vue')
    },
    {
        path: '/node',
        name: 'node',
        meta: {
            title: '节点'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/node/Node.vue')
    },
    {
        path: '/wallet',
        name: 'wallet',
        meta: {
            title: '钱包'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/wallet/Wallet.vue')
    },
    {
        path: '/wallet-transfer-out',
        name: 'wallet-transfer-out',
        meta: {
           title: '转出'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/wallet/TransferOut.vue')
    },
    {
        path: '/user-center',
        name: 'user-center',
        meta: {
            title: '个人中心'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/user-center/UserCenter.vue')
    },
    {
        path: '/warband',
        name: 'warband',
        meta: {
            title: '我的战队'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/warband/Warband.vue')
    },
    {
        path: '/about',
        name: 'about',
        meta: {
            title: '关于我们'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/about/About.vue')
    },
    {
        path: '/setting',
        name: 'setting',
        meta: {
            title: '个人设置'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/setting/Setting.vue')
    },
    {
        path: '/payment-code',
        name: 'payment-code',
        meta: {
            title: '收款码'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/payment-code/PaymentCode.vue')
    },
    {
        path: '/band-usdt',
        name: 'band-usdt',
        meta: {
            title: '绑定钱包地址'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/bandusdt/BandUSDT.vue')
    },
    {
        path: '/account-auth',
        name: 'account-auth',
        meta: {
            title: '开通账户'
        },
        component: () => import(/* webpackChunkName: "[request]" */ '../views/authorization/Authorization.vue')
    }
];

console.log('router.length = ' + MainChildren.length);

/**
 * 需要显示 TabBar 的路由 name
 */
const ShowTabBarRouterNames: any[] = [
    'home',
    'c2c',
    'node',
    'user-center'
];

/**
 * 需要隐藏 NAVBar 的路由 name
 */
const HideNavBarRouterNames: any[] = [
    'node'
];

export {
    MainChildren,
    ShowTabBarRouterNames,
    HideNavBarRouterNames
}
